package org.xin;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.xin.framework.Run;
import org.xin.framework.config.properties.ConfigProperties;

/**
 * @author ：xin
 * @date ：Created in 2021/9/29
 * @desc <p>  </p>
 * @modified By：$
 * @version: $
 */
//开启服务发现
@EnableDiscoveryClient
//开启事务回滚
@EnableTransactionManagement
//加载配置类
@EnableConfigurationProperties({ConfigProperties.class})
//exclude = DataSourceAutoConfiguration.class  忽略内置数据源配置避免循环依赖
@SpringBootApplication(scanBasePackages = {"org.xin"}, exclude = DataSourceAutoConfiguration.class)
public class SystemApp {
    public static void main(String[] args) {
        Run.run(SystemApp.class);
    }
}
